package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/12/26.
 */

public class GetPersonalAdsRequest {
    Long userId;
    Integer isShow;

    private GetPersonalAdsRequest(Builder builder) {
        setUserId(builder.userId);
        setIsShow(builder.isShow);
    }

    public static Builder newBuilder() {
        return new Builder();
    }


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }


    public static final class Builder {
        private Long userId;
        private Integer isShow;

        private Builder() {
            userId = null;
            isShow = 0;
        }

        public Builder userId(Long userId) {
            this.userId = userId;
            return this;
        }

        public Builder isShow(Integer isShow) {
            this.isShow = isShow;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().getPersonalAds(new GetPersonalAdsRequest(this));
        }
    }
}
